package com.zcl.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zcl.service.AccidentService;

@Controller
public class MainController {
	@Autowired
	AccidentService accidentService;
	
	/**
	 * 首页最新海事信息
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/main/accidentMain")
	public List<Map<String, String>> mainAccidentMain() {
		List<Map<String, String>> accidentList = accidentService.accidentQuery();
		System.out.println("首页最新海事信息");
		return accidentList;
	}
}
